export const throttle = (fn, delay) => {
    let timer = null
    return (...e) => {
        let context = this
        let arg = e
        clearTimeout(timer)
        timer = setTimeout(() => {
            fn.apply( context, [...arg])
        }, delay);
    }
}